import Vue from 'vue'
import VueRouter from 'vue-router'
import BlankLayout from '@views/layouts/BlankLayout.vue'
Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    redirect: '/visual/StakeholdersList',
    name: 'Default'
  },
  {
    path: '/visual',
    component: BlankLayout,
    name: 'visual',
    children: [
      {
        path: 'StakeholdersList',
        name: 'StakeholdersList',
        component: () => import('@/views/StakeholdersList.vue'),
        meta: {
          title: '项目利益相关方脉络图列表'
        }
      },
      {
        path: 'StakeholdersList2',
        name: 'StakeholdersList2',
        component: () => import('@/views/StakeholdersList2.vue'),
        meta: {
          title: '参与项目竞争对手分析'
        }
      },
      {
        path: 'StakeholdersList3',
        name: 'StakeholdersList3',
        component: () => import('@/views/StakeholdersList3.vue'),
        meta: {
          title: '访厂准备和复盘记录表'
        }
      },
      {
        path: 'StakeholdersList4',
        name: 'StakeholdersList4',
        component: () => import('@/views/StakeholdersList4.vue'),
        meta: {
          title: '访厂准备和复盘记录表'
        }
      }
    ]
  }
]

const router = new VueRouter({
  routes
})

export default router
